little tweaks to make it work for pan