more optimal usage of format