modified if condition
for converting base64 encoding