added bindAttribute method