added old trinity code*
added ALL old trinity code