getting Ricky's code