updated to make rows work for objectives