fix aliasing being done multiple times