added the first function