-added if statement