made modulo for seconds neater looking