switched from dict to list for forward_links and backward_links