improves the function answer