Phase diagram of half doped manganites