added check assignment