added digest quick function