added bs3 compatiable code.