adjusting hover function