A perfectly competitive firm is advised to close down when the