Adjusted specialK version