erased unused global vars