added function declaration definition