compile model WIP