inline two simple functions