added mouse compatibility