removed bytes at end