fixed some code in the post