add check for right domain.
add 2 const