adaptive method is fixed! the program works as it should