separated hash creating methods from main class