adding hash with layers