properly minify 2 func joint