function that used to pratices