changed lists to queues in neo4j