adding forward and backward