adding assign to user function