take out loop writing temporarily