time needs to be in seconds for readg