bug resolved : bit positions were modified for getting way from check_cache function