improve name of side effecting function