added "pause" (but it is not working properly)