moved method to custom methods