serial communication with bluetooth hc-05 not working

SoftwareSerial BT(17, 16); //these are R/T pins in arduino mega

Only a fool does software serial on hardware serial pins.