simplify frame setting