removed configurations bug
use angular function