added description and bug analysis