header f added and mains editted