tweaking some code working on copy and slides