implemented moving elements in collection