resolved parser problem with generic types