rfx'ing two methods into one