remove warning and fix formatting