Added code: changed border to outline, added check for own attributes.