fixed bug at line selection. Moving on with calculations