removing some unnecessary checks which __shmem