added support for continuous model