moved out inline stuff