accounted for first edge case