setting up build rows function *not working*