adding support for custom bounds