flattening buttons is too hard