fixeda bug in methods.