solve bin problem