work on parseBlock