remove unnecessary guards