added alternative implementation for end_other