makes visualize_aam work for different features