fix array typing and instructions