moved logic out of controller in to Trinity class