handle nested bin embedding