remove unecessary err declaration