i tried everything but mac os setup is not detecting internal hdd of my laptop, and i don't think that it will detect an ssd if i put that in laptop because i think problem is caused by that sata mode which is set to RAID. thats not possible to change. so i tried to install on a usb 3.0 pen drive(64 gb) and it worked but main problem is that i can't permanently use that on a 64 gb usb drive.