added force function including input information