converted to directive