before cleaning the raypicking logic