changed mseconds to seconds