updated to accept prompt properly