assume ints are 32 bits; added idle time structure