mark some functions for inlining
change orientation to be vertical