switched handler to transform