fixed memleak
added in stack from psudomoto