added function versions for ubuntu