functions in local structs progress