fixing format to match extensions