simplify guard checks
documentation++