clean the code nearest not working