type parsing works