added decoded method
updated