minifier compatible function format