correcting position and shop variable