change to 500 milliseconds