automatic sieve bug fix, added gui