cleaned up dNdS code