changed spresources structure