style: inline some functions