fixed priming function