add delay to fix timing issue