trying to get it to work as a component