trying to make it smoother