works fine but exceeds time limit..