fixed logical error, still seg fault
removed unnesscary variables
switchin branch due to feture freeze

this code blow up the stack