using attributes as array instead of ArrayList