updates sorting and utils