why we use this function?