make sample code more simple