shape scaling and shifting debbuged. new bbox strategy