looks like we need to keep this function around.