need to finish ar queries