start and end window alignment