add dependency annotation, fix TR bug