adding get force function for spring