completed translater, added error message for seq of length 0