added better logic to BOTRK