changed q require statement