finished first half logic