modified for smoother css