re arranging variables