fixes bug (forgot to delete a funcion call)