simplify prompt logic