refactor
localization code
cropping code