this should fix a 'referenced before assignment'