function for soldiers