delete redundant check