switch prop call for attr