added getSeconds function