getting rid of unnecessary bind function