most of bt functions added