inlined small functions that are called often