re-added if statement