simplify code sample further