Fix instance variable thingy again

instead of using an instance variable i should rather hand it on as an argument to the method