how and when