fixed formatting query bug, no longer using destructive methods