finish the code of box fitting. Need to work on resolve "F" shape issue.