made error() remove dot suffix for array