functionfiels almoste done