i maed a function