code moved into angular project