change hash to methods