adding repulsion and attraction methods