added bindall function