more angular logic for name