forward's code