fixing so for multiple sheets and issues with constants   also much faster