inlined a short function