solve reverse functionality problem