fixed code in post1