make bind function optional is certain cases