created gem? helper
refactored code