resource array doesnt work