changing to hash rocket syntax