removed some useless if/elses.
attempt to check if not index 2 on text var