added procedure and prompt