simplify compat function to minimum