modifying data/code for mouse compatibility