adding change for serializing functions