If will work better with the right error message