changed mouse func