added bbox and translate to rectangle