fixed copy problem from issue #3
removed unused empty lines