modification in play method