added zoom and fixed reduction of lines bug