implement synchronized statement
bug fixed of variable declaration