fixed long lines
shortened lines when necessary