Well, the the problem was that my sprites size weren’t a multiplicationmultiple of 32 so the scale and the geometric calculation were not as accurate as I expected to be. Theorically ItTheoretically it had to work! butBut it didn’t.
I used someones advises and it works fine now. here is the answer that I found for my question
http://flarerpg.org/tutorials/isometric_tiles/
Hope it helps someone, and save some time for him/her.
Myself!