here is the alias logic