Thank you for your reply and advice Will tear this mess down peace by peace and learn to debug. I got the idea how to write the add function from a tutorial, guess it was wrong or i miss understood something and that propably means i might have some other mistakes..