getting time limit. need to fix why