inserted variable in wrong spot