add setComponent methods