removed array casting in components