create and delete reference