getIfValues bugfix on lines limit
getIfValues code refactor