added planning and recognition