Maps function on barbershop index working