angular function started to work