added function check