used int instead of str for array dereference