checking angular logic