adding check back into getRest()