fixed ugly formatting on instantiation function