optimized to remove unwanted checking