serialized some of the operations to make them faster