allocation working