added array and conditionals to rps