4 rings not 5!

also made some optimizations to adjacency.