fix to apply shifts to get the right data clipped; still need to fix positioning information
removed prints used in debugging