fixed task check so that it works! == vs .equals()