start of generate_cry