moved method set code