implement time method