get rid of some repitition