solved the cap issue