removing redundant check