initial attempt at converting to rest