implementing time event