add part of function