changed 1 to l to fix time method