initial thsi runs correctly