check style and find bug