working on ECB mode