added function and man file