rearranges private methods