implemented allocation adjustment