fixed implicit conversion error
added method line counter. does not count correctly in one scenario - need to figure out