pointers and vectors were corrected and tested, i started to implement the lock in method