fixed bug in same as check