a more thorough checking and warning message when aliasing happens more than once