added lots of functions for identifying twins