finish code with warnings