limit size if statement