uses the short version of function