again, using the generic js function we have for this would be best