remove need for rand