added my function code