fix for prepare format