implemented forecast functions