wrote two variations of useful Scatter functions