created reverse fxn. tested it.