to add auto boundary detector