fixed warnings and removed unused package