better rest structure