refractor some help methods