compiles prev next chain stuff :)