initial RF code