almost solves first row