remove extra decode and extra puts