moved methods to Frag