fixing issue with delay of goPattern