removed loop, fixed column names, added comments