method duplication error fixed.