why is it doing it twice?