start implementing angular functions