allerdings kommt ein fehler das mit der if abfrage was nicht stimmt