wrote second pass