switched type to attribute