fixed some code blocks