edited code

deleted lock(this)