updating pan to be smarter