unused var
added reverse functionality