improving goal detection