added prolog as well