written some angular stuff