changed units to encode properly in encodeAction() method