added stuff for checking line and method length