added repel and attract mehods