updated for RC4