added support for various bins in put method