ugly as fuck optimization

perform ugly function call inlining