fix function is boxed