issue:#52 warnings and code formatting