passing structure variable to function