fixed issue 2 of old repository