added function declaration