simplify code a little bit