added check for already existing views