recoded and created some variables