fixed smith with comemnts