fixed some formatting and also an undefined format