ending version 1