change delay to 500 ms