moved hamlcol variable to controller and added hash version