fixed angular functionality