cleared map and vectors, fixed memory :)