added function header to functions