Dont check direction in encode method