some bugs
warnings