changed seconds to milliseconds